package com.pansoft.openplanet.account.model;

import java.io.Serializable;

public class EOSBean implements Serializable {

    private String eosAddress;
    private String ownerPubKey;
    private String ownerPrivKey;
    private String activePubkey;
    private String activePrivKey;

    //是否激活
    private boolean isActive;

    private EOSBean(Builder builder) {
        eosAddress = builder.eosAddress;
        ownerPubKey = builder.ownerPubKey;
        ownerPrivKey = builder.ownerPrivKey;
        activePubkey = builder.activePubkey;
        activePrivKey = builder.activePrivKey;
        isActive = builder.isActive;
    }


    public static final class Builder {
        private String eosAddress;
        private String ownerPubKey;
        private String ownerPrivKey;
        private String activePubkey;
        private String activePrivKey;
        private boolean isActive;

        public Builder() {
        }

        public Builder eosAddress(String val) {
            eosAddress = val;
            return this;
        }

        public Builder ownerPubKey(String val) {
            ownerPubKey = val;
            return this;
        }

        public Builder ownerPrivKey(String val) {
            ownerPrivKey = val;
            return this;
        }

        public Builder activePubkey(String val) {
            activePubkey = val;
            return this;
        }

        public Builder activePrivKey(String val) {
            activePrivKey = val;
            return this;
        }

        public Builder isActive(boolean val) {
            isActive = val;
            return this;
        }

        public EOSBean build() {
            return new EOSBean(this);
        }
    }

    public String getEosAddress() {
        return eosAddress;
    }

    public String getOwnerPubKey() {
        return ownerPubKey;
    }

    public String getOwnerPrivKey() {
        return ownerPrivKey;
    }

    public String getActivePubkey() {
        return activePubkey;
    }

    public String getActivePrivKey() {
        return activePrivKey;
    }

    public boolean isActive() {
        return isActive;
    }
}
